namespace ModelC
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("user")]
    public partial class user
    {
        public int Id { get; set; }

        [StringLength(20)]
        public string LoginName { get; set; }

        [StringLength(32)]
        public string Password { get; set; }

        [StringLength(50)]
        public string UserName { get; set; }

        [Column(TypeName = "bit")]
        public bool? Sex { get; set; }

        [StringLength(20)]
        public string Phone { get; set; }

        [StringLength(255)]
        public string Address { get; set; }

        public int? DeptId { get; set; }

        public DateTime? LoginTime { get; set; }

        public DateTime? CreateTime { get; set; }

        public DateTime? UpdateTime { get; set; }

        public int? CreateUserId { get; set; }

        public int? UpdateUserId { get; set; }

        [Column(TypeName = "bit")]
        public bool? Status { get; set; }
    }
}
